const BASE_URL = process.env.NODE_ENV === "production" ? "/shangpinghui-backstage/" : "./";

module.exports = {
    publicPath: BASE_URL,
    // 打包后，取消生成.map文件
    productionSourceMap: false,
    // 配置代理跨域
    devServer: {
        proxy: {
            '/dev-api': {
                target: 'http://gmall-h5-api.atguigu.cn',
                pathRewrite: {'^/dev-api': ''},
            },
        }
    }
}